/**
 * 本地 数据 获取 接口
 * @author ExcelEditor
 */
class LocalData{

	/**
	 * 初始化反射map
	 */
	private static _classDic:Dictionary;
	public static initDefinitionDic():void{
		LocalData._classDic = new Dictionary();
		LocalData._classDic["data.HomePage"] = data.HomePage;
	}

	/**
	 * 根据路径 获取 反射Class
	 */
	public static getDefinitionByName(name:string):any{
		return this._classDic[name];
	}

	/**
	 * 获取homepage根据ID
	 * @return HomePage
	 */
	public static getHomePageByID_HomePage(ID:number):data.HomePage{
		var path:string = "data.HomePage";
		return LocalDataManager.getInstance().getVoByValueName(path,ID+"");
	}

	/**
	 * 获取homepage列表
	 * @return
	 */
	public static get HomePageList_HomePage():Array<data.HomePage>{
		var path:string = "data.HomePage";
		return LocalDataManager.getInstance().getVoListByPath(path);
	}

}